<div  ng-controller="usergroupCtrl">
	<div class="mainview">
		<div class="usergroup">
			<div class="usergroupl">
				<selectormodal ng-if="ApiData.ApiOpen"   apidata="ApiData" ></selectormodal>
			</div>
			<div class="usergroupr" style=" z-index:998; overflow: inherit">
				<div class="usergroup_Nodecontrol"  >
					<div class="usergroup_Nodecontroltitle">
						<div ng-if="PublicObj.userGroup_ID!=''" class="usergroup_Nodecontroltitlel">节点编辑</div>
						<div ng-if="PublicObj.userGroup_ID==''" class="usergroup_Nodecontroltitlel">节点新增</div>
						<div class="usergroup_zwf"></div>
						<div class="usergroup_Nodecontroltitler">
							<div btncon="btnAdd" class="xzzjd"  btn-obj="btnlist"><i class="iconfont">&#xe7f7;</i>
							<span ng-show="IdisNull()" >新增节点</span>
							<span ng-show="!IdisNull()">新增子节点</span>
							</div>

							<div btncon="btnDel" class="delect"  btn-obj="btnlist"><i class="iconfont">&#xe606;</i>删除</div></div>
						</div>
						<div class="usergroup_Nodecontrolmain">
							<div class="usergroup_Nodecontrolmaincolumn">
								<ul class="usergroup_Nodecontroljdsz">
									<li><div class="usergroup_Nodecontroljdszl"><label for=""><i class="iconfont">&#xe61a;</i>节点编号</label></div><div class="usergroup_Nodecontroljdszr"><input type="" placeholder="必填" ng-model="PublicObj.userGroup_No"><span  ng-click="NewNo()"class="usergroup_Nodecontroljdszxg">自动生成</span></div></li>

									<li><div class="usergroup_Nodecontroljdszl"><label><i class="iconfont">&#xe713;</i>节点名称</label></div><div class="usergroup_Nodecontroljdszr"><input type="text" set-focus placeholder="必填"ng-model="PublicObj.userGroup_Name" name=""></div></li>

								<li><div class="usergroup_Nodecontroljdszl"><label><i class="iconfont">&#xe630;</i>父节点</label></div><div class="usergroup_Nodecontroljdszr"><input type="" placeholder="如不选择 将做为父节点创建" ng-model="PublicObj.parentName"  name="" disabled="disabled"><span ng-click="UpdateParentFun($event)" class="usergroup_Nodecontroljdszxg">修改级别</span></div>
<selectormodal  ng-if="ParentData.ApiOpen" apidata="ParentData" ></selectormodal>
								</li>
									
								<li><div class="usergroup_Nodecontroljdszl"><label  title="查看详细"><i class="iconfont">&#xe91b;</i>人员数量</label></div><div class="usergroup_Nodecontroljdszr"><input ng-show="!PeopleData.ApiOpen" type=""  title="查看详细" ng-model="PublicObj.userGroup_Num"  name="" disabled="disabled" >
<input ng-show="PeopleData.ApiOpen" type="" title="" ng-model="PeopleData.UserList.length"  name="" disabled="disabled" >
								<span class="usergroup_Nodecontroljdszxg" ng-click="AddUserListFun($event)">批量添加人员</span></div>
<selectormodal  ng-if="PeopleData.ApiOpen" apidata="PeopleData" ></selectormodal>
								</li>
									<li><div class="usergroup_Nodecontroljdszl"><label><i class="iconfont">&#xe713;</i>显示顺序</label></div><div class="usergroup_Nodecontroljdszr"><input type="text" required  placeholder="必填" ng-model="PublicObj.wSort" name="">
								</div></li>
								</ul>
							</div>
							<div class="usergroup_Nodecontrolmaincolumn">
								<div class="usergroup_Nodecontrolgnqx">
									<div class="usergroup_Nodecontrolgnqxtitle"><i class="iconfont">&#xe650;</i>用户组功能权限</div>
									<jisu-perm  jisu-model="ParentData.userAuthorityList"></jisu-perm>									
								</div>
							</div>

				


	 				<div class="usergroup_Nodecontrolmaincolumn">
	 					<div class="Person_in_charge_Nodecontrolfzr">
	<div class="Person_in_charge_Nodecontrolfzrtitle"><i class="iconfont"></i>负责人</div>
		<div class="Person_in_charge_Nodecontrolfzrmain">
			<ul>
	 			<li ng-repeat="item in personList"><div title="{{item.user_Name}}" labelshow-directive="{{item.user_ID}}"  class="img-circle Person_in_charge_Nodecontrolfzr_img">
                <span ng-click="DelPersonListFun(item.user_ID)" class="personnelIMnamemain_del">X</span>
                <img ng-src="{{item.user_Img}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'"/></span></li>
				<li  tooltips tooltip-template="注意：负责人只负责当前用户组，不包含子用户组"><div ng-click="AddpersonFun($event)" class="checkboxsxtjtj">+</div></li>
	 		</ul>
	</div>
</div>

	 				</div>
	 			</div>
	 		</div>
             <!--ng-click="SaveFun()"-->
	 		<selectormodal  ng-if="personData.ApiOpen" apidata="personData" ></selectormodal>
	 			<div class="usergroup_Nodecontrolfooter">                
                    <button class="btn"  btncon="btnAdd btnUpd"  btn-obj="btnlist" ng-if="!isloading">保存</button>                
                    <div class="btn new_curriculum_bottom_quxiao" ng-if="isloading">
                        <btnloading isbtnload="isloading" style="float:left;padding-right: 6px;margin-top: 2px;"></btnloading>保存中
                    </div>
                </div>
<loading isloading="isloading"></loading>
	 </div>
	</div>
</div>
</div>
